import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridLayout;

import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;


public class MyProgressPanel extends JPanel{
	JPanel panel;
	JPanel north,center;
	
	public MyProgressPanel(){
		panel=new JPanel();
		panel.setPreferredSize(new Dimension(600,400));
		panel.setLayout(new BorderLayout());
		panel.setBackground(Color.WHITE);
		
		//north panel
		north=new JPanel();
		north.setLayout(new BorderLayout());
		north.setBackground(Color.WHITE);
		
		JPanel nnorth=new JPanel();
		JPanel cnorth=new JPanel();
		JLabel northLabel=new JLabel("At a Glance");
		nnorth.setBorder(BorderFactory.createLineBorder((Color.black)));
		nnorth.add(northLabel);
		north.add(nnorth,BorderLayout.NORTH);
		
		cnorth.setLayout(new GridLayout(6,2));
		cnorth.setBackground(Color.WHITE);
		JLabel cum=new JLabel("Cumulative GPA:");
		JLabel studentGPA=new JLabel("3.999");
		JLabel degree=new JLabel("Degree:");
		JLabel studentDegree=new JLabel("Bachelor of Science");
		JLabel majors=new JLabel("Majors:");
		JLabel studentMajors=new JLabel("Computer Science");
		JLabel departments=new JLabel("Departments:");
		JLabel studentDepartments=new JLabel("Computer Science");
		JLabel catalog=new JLabel("Catalog:");
		JLabel studentCatalog=new JLabel("2012");
		JLabel progress=new JLabel("Progress:");
		JLabel studentProgress=new JLabel("80/120");
		
		cnorth.add(cum);
		cnorth.add(studentGPA);
		cnorth.add(degree);
		cnorth.add(studentDegree);
		cnorth.add(majors);
		cnorth.add(studentMajors);
		cnorth.add(departments);
		cnorth.add(studentDepartments);
		cnorth.add(catalog);
		cnorth.add(studentCatalog);
		cnorth.add(progress);
		cnorth.add(studentProgress);
		north.add(cnorth,BorderLayout.CENTER);
		
		panel.add(north,BorderLayout.NORTH);
		
		
		//center
		center=new JPanel();
		center.setLayout(new BorderLayout());
		center.setBackground(Color.white);
		
		JPanel ncenter=new JPanel();
		JPanel ccenter=new JPanel();
		ccenter.setLayout(new BorderLayout());
		ccenter.setBackground(Color.white);
		//
		JLabel requirements=new JLabel("Requirements");
		ncenter.setBorder(BorderFactory.createLineBorder((Color.black)));
		ncenter.add(requirements);
		center.add(ncenter,BorderLayout.NORTH);
		
		
		//in ccenter
		//center_north
		JPanel center_north=new JPanel();
		center_north.setLayout(new BorderLayout());
		JPanel cn_north=new JPanel();
		
		JLabel general=new JLabel("General Studies Program");
		cn_north.setBorder(BorderFactory.createLineBorder((Color.black)));
		cn_north.add(general);
		center_north.add(cn_north,BorderLayout.NORTH);
		
		ccenter.add(center_north,BorderLayout.NORTH);
		//center_center
		
		
		
		center.add(ccenter,BorderLayout.CENTER);
		
		panel.add(center,BorderLayout.CENTER);
		
		add(panel);
	}
}
